package com.stk.megastack;

import android.graphics.Point;

public class Box {
	private Point pos; 
	private boolean active;
	private boolean toDestroy;
	private int alpha;
	
	
	public Box(Point pos) {
		super();
		this.pos = pos;
		this.active = false;
		this.toDestroy = false;
		this.alpha = 255;
	}


	public Point getPos() {
		return pos;
	}


	public void setPos(Point pos) {
		this.pos = pos;
	}


	public boolean isActive() {
		return active;
	}


	public void setActive(boolean active) {
		this.active = active;
	}


	public boolean isToDestroy() {
		return toDestroy;
	}


	public void setToDestroy(boolean toDestroy) {
		this.toDestroy = toDestroy;
	}


	public int getAlpha() {
		return alpha;
	}


	public void setAlpha(int alpha) {
		this.alpha = alpha;
	}


	public boolean fadeout() {
		this.alpha = this.alpha - 15;
		if (alpha < 0){
			this.alpha = 0 ;
			this.toDestroy = false;
			return true;
		}
		return false;
	}
	
	

}
